import os,sys
#from environment import gccxml
from pyplusplus import module_builder
cp = module_builder.call_policies


mb = module_builder.module_builder_t(
        files=['test.h'],
        include_paths=["/home/allenb/Source/boost/installed/include/boost-1_33_1",] )

ns = mb.global_ns

ns["B"].exclude()
#ns.decl("factory").call_policies = cp.return_value_policy(cp.manage_new_object)

#I can print declarations to see what is going on
#mb.print_declarations()

#Now it is the time to give a name to our module
mb.build_code_creator( module_name='test' )

#And finally we can write code to the disk
mb.write_module( os.path.join( os.path.abspath('.'), 'test.py.cpp' ) )
